import ctypes

lib = ctypes.cdll.LoadLibrary(r"D:\visual_studio_workspace\demo_python_c\Dll1\x64\Debug/Dll1.dll")
lib.hello()
lib.hello1()

# 设置传参类型
lib.plus_a_b.argtypes = [ctypes.c_float, ctypes.c_float]
# 设置返回值类型
lib.plus_a_b.restype = ctypes.c_float
s = lib.plus_a_b(ctypes.c_float(10.0), ctypes.c_float(3.0))
print(s)

